#include <stdio.h>

int n;
long long ans;

int main() {
	while (1) {
		scanf("%d", &n);
		if (n<0) break;
		n++;

		ans = ((long long)n*(n-1))/2;
		ans++;
		printf("%lld\n", ans);
	}
}
